package Exceptions;

import Conf.Consts;

/*
 * A method to have all our Exception inherit so we know that's our exception and not java's
 */
public class GeneralException extends StrategoException {
	
	private static final long serialVersionUID = Consts.Version;
	
	private GeneralExceptionType type;
	public GeneralExceptionType getType() {
		return type;
	}

	public enum GeneralExceptionType {
		NotValidPlayer("Not a vaild player");
		
		private String msg;
		GeneralExceptionType(String msg) {
			this.msg = msg;
		}
		public String getMsg() {
			return msg;
		}
	}
	public GeneralException() {
		super();
	}
	
	public GeneralException(GeneralExceptionType type) {
		super(type.getMsg());
		this.type = type;
	}

}
